/* ==========================================================
   The Leadership Standard ("One Principle, Applied to Every Decision")
   File: wwwroot/css/leadership-standard.css
   Used by: Views/Partials/blocklist/Components/leadershipStandardBlock.cshtml
   Fluid layout: same scaling as the other blocks (6.8vw gutter).
   ========================================================== */
.ld-std {
  --lds-bg: #050709;
  --lds-orange: #ff9a45;
  --lds-gutter: 6.8vw;
  --lds-gap: clamp(12px, 1.35vw, 34px);
  --lds-glass: rgba(255, 255, 255, .2);
  --lds-ease: cubic-bezier(.65, 0, .35, 1);
  --lds-ease-out: cubic-bezier(.16, 1, .3, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  background: var(--lds-bg);
  padding: clamp(44px, 4.4vw, 114px) var(--lds-gutter) clamp(48px, 5vw, 130px);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
.ld-std *, .ld-std *::before, .ld-std *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Background ---------- */
.ld-std__media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ld-std__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ld-std__media::after {                  /* darker shade so the white text reads on any photo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 24, .62) 0%, rgba(10, 14, 24, .42) 40%, rgba(10, 14, 24, .5) 100%);
}

/* ---------- Heading row ---------- */
.ld-std__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 100px);
  align-items: center;
  margin-bottom: clamp(32px, 5.6vw, 144px);
}
.ld-std__eyebrow {
  margin-bottom: clamp(10px, 1.1vw, 28px);
  font-size: clamp(11px, .85vw, 22px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ld-std__heading {
  margin-bottom: clamp(12px, 1.1vw, 28px);
  font-size: clamp(24px, 2.08vw, 54px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.ld-std__intro {
  max-width: 46vw;
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(13px, .9vw, 23px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}
.ld-std__tagline {
  font-size: clamp(16px, 1.45vw, 38px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.ld-std__tagline span { color: var(--lds-orange); }

/* ---------- Cards ---------- */
.ld-std__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--lds-gap);
}
.ld-std__card {
  position: relative;
  min-height: clamp(260px, 24.4vw, 640px);
  padding: clamp(28px, 4.6vw, 118px) clamp(18px, 2vw, 52px) clamp(24px, 2.4vw, 62px);
  background-color: var(--lds-glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  outline: none;
  overflow: hidden;
  transition: box-shadow .7s var(--lds-ease), transform .7s var(--lds-ease-out);
}
/* orange glow: fades onto the active card (first by default, then whichever is hovered) */
.ld-std__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(222, 132, 66, .92) 0%, rgba(176, 116, 82, .55) 42%, rgba(120, 112, 110, 0) 100%);
  opacity: 0;
  transition: opacity .8s var(--lds-ease);
}
.ld-std__card.is-active::before { opacity: 1; }
.ld-std__card.is-active { box-shadow: inset 0 0 0 1px rgba(255, 170, 110, .25), 0 20px 50px rgba(0, 0, 0, .35); }
.ld-std__card:focus-visible { box-shadow: inset 0 0 0 2px var(--lds-orange); }

.ld-std__title {
  margin-bottom: clamp(12px, 1.6vw, 40px);
  font-size: clamp(17px, 1.4vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.ld-std__text,
.ld-std__practice {
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(13px, .92vw, 24px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
.ld-std__practice { font-size: clamp(12px, .85vw, 22px); }
.ld-std__label {
  margin-top: clamp(14px, 1.4vw, 36px);
  margin-bottom: clamp(8px, .8vw, 20px);
  font-size: clamp(11px, .78vw, 20px);
  font-weight: 600;
  color: var(--lds-orange);
  transition: color .8s var(--lds-ease);
}
/* on the orange card the label turns a lighter peach so it stays readable */
.ld-std__card.is-active .ld-std__label { color: #ffc89a; }

/* ---------- Entrance (added by JS only) ---------- */
.ld-std.js-reveal .ld-std__fx { opacity: 0; transform: translateY(26px); }
.ld-std.js-reveal.is-visible .ld-std__fx {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease var(--fd, 0s), transform 1.2s var(--lds-ease-out) var(--fd, 0s), box-shadow .7s var(--lds-ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .ld-std { --lds-gutter: 32px; }
  .ld-std__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-std__card { min-height: 0; padding-top: 32px; }
  .ld-std__intro { max-width: 640px; }
}
@media (max-width: 900px) {
  .ld-std { --lds-gutter: 24px; }
  .ld-std__head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
}
@media (max-width: 560px) {
  .ld-std { --lds-gutter: 20px; }
  .ld-std__cards { grid-template-columns: 1fr; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ld-std { --lds-glass: rgba(60, 66, 72, .82); }
}
@media (prefers-reduced-motion: reduce) {
  .ld-std *, .ld-std *::before { transition: none !important; }
}